.class public Lcom/burstly/jackson/map/deser/AbstractDeserializer;
.super Lcom/burstly/jackson/map/JsonDeserializer;
.source "AbstractDeserializer.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/jackson/map/JsonDeserializer",
        "<",
        "Ljava/lang/Object;",
        ">;"
    }
.end annotation


# static fields
.field private static synthetic $SWITCH_TABLE$com$burstly$jackson$JsonToken:[I


# instance fields
.field protected final _acceptBoolean:Z

.field protected final _acceptDouble:Z

.field protected final _acceptInt:Z

.field protected final _acceptString:Z

.field protected final _baseType:Lcom/burstly/jackson/type/JavaType;


# direct methods
.method static synthetic $SWITCH_TABLE$com$burstly$jackson$JsonToken()[I
    .locals 3

    .prologue
    .line 20
    sget-object v0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->$SWITCH_TABLE$com$burstly$jackson$JsonToken:[I

    if-eqz v0, :cond_0

    :goto_0
    return-object v0

    :cond_0
    invoke-static {}, Lcom/burstly/jackson/JsonToken;->values()[Lcom/burstly/jackson/JsonToken;

    move-result-object v0

    array-length v0, v0

    new-array v0, v0, [I

    :try_start_0
    sget-object v1, Lcom/burstly/jackson/JsonToken;->END_ARRAY:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/4 v2, 0x5

    aput v2, v0, v1
    :try_end_0
    .catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_c

    :goto_1
    :try_start_1
    sget-object v1, Lcom/burstly/jackson/JsonToken;->END_OBJECT:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/4 v2, 0x3

    aput v2, v0, v1
    :try_end_1
    .catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_b

    :goto_2
    :try_start_2
    sget-object v1, Lcom/burstly/jackson/JsonToken;->FIELD_NAME:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/4 v2, 0x6

    aput v2, v0, v1
    :try_end_2
    .catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_a

    :goto_3
    :try_start_3
    sget-object v1, Lcom/burstly/jackson/JsonToken;->NOT_AVAILABLE:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/4 v2, 0x1

    aput v2, v0, v1
    :try_end_3
    .catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_9

    :goto_4
    :try_start_4
    sget-object v1, Lcom/burstly/jackson/JsonToken;->START_ARRAY:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/4 v2, 0x4

    aput v2, v0, v1
    :try_end_4
    .catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_8

    :goto_5
    :try_start_5
    sget-object v1, Lcom/burstly/jackson/JsonToken;->START_OBJECT:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/4 v2, 0x2

    aput v2, v0, v1
    :try_end_5
    .catch Ljava/lang/NoSuchFieldError; {:try_start_5 .. :try_end_5} :catch_7

    :goto_6
    :try_start_6
    sget-object v1, Lcom/burstly/jackson/JsonToken;->VALUE_EMBEDDED_OBJECT:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/4 v2, 0x7

    aput v2, v0, v1
    :try_end_6
    .catch Ljava/lang/NoSuchFieldError; {:try_start_6 .. :try_end_6} :catch_6

    :goto_7
    :try_start_7
    sget-object v1, Lcom/burstly/jackson/JsonToken;->VALUE_FALSE:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/16 v2, 0xc

    aput v2, v0, v1
    :try_end_7
    .catch Ljava/lang/NoSuchFieldError; {:try_start_7 .. :try_end_7} :catch_5

    :goto_8
    :try_start_8
    sget-object v1, Lcom/burstly/jackson/JsonToken;->VALUE_NULL:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/16 v2, 0xd

    aput v2, v0, v1
    :try_end_8
    .catch Ljava/lang/NoSuchFieldError; {:try_start_8 .. :try_end_8} :catch_4

    :goto_9
    :try_start_9
    sget-object v1, Lcom/burstly/jackson/JsonToken;->VALUE_NUMBER_FLOAT:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/16 v2, 0xa

    aput v2, v0, v1
    :try_end_9
    .catch Ljava/lang/NoSuchFieldError; {:try_start_9 .. :try_end_9} :catch_3

    :goto_a
    :try_start_a
    sget-object v1, Lcom/burstly/jackson/JsonToken;->VALUE_NUMBER_INT:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/16 v2, 0x9

    aput v2, v0, v1
    :try_end_a
    .catch Ljava/lang/NoSuchFieldError; {:try_start_a .. :try_end_a} :catch_2

    :goto_b
    :try_start_b
    sget-object v1, Lcom/burstly/jackson/JsonToken;->VALUE_STRING:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/16 v2, 0x8

    aput v2, v0, v1
    :try_end_b
    .catch Ljava/lang/NoSuchFieldError; {:try_start_b .. :try_end_b} :catch_1

    :goto_c
    :try_start_c
    sget-object v1, Lcom/burstly/jackson/JsonToken;->VALUE_TRUE:Lcom/burstly/jackson/JsonToken;

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    const/16 v2, 0xb

    aput v2, v0, v1
    :try_end_c
    .catch Ljava/lang/NoSuchFieldError; {:try_start_c .. :try_end_c} :catch_0

    :goto_d
    sput-object v0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->$SWITCH_TABLE$com$burstly$jackson$JsonToken:[I

    goto/16 :goto_0

    :catch_0
    move-exception v1

    goto :goto_d

    :catch_1
    move-exception v1

    goto :goto_c

    :catch_2
    move-exception v1

    goto :goto_b

    :catch_3
    move-exception v1

    goto :goto_a

    :catch_4
    move-exception v1

    goto :goto_9

    :catch_5
    move-exception v1

    goto :goto_8

    :catch_6
    move-exception v1

    goto :goto_7

    :catch_7
    move-exception v1

    goto :goto_6

    :catch_8
    move-exception v1

    goto :goto_5

    :catch_9
    move-exception v1

    goto :goto_4

    :catch_a
    move-exception v1

    goto :goto_3

    :catch_b
    move-exception v1

    goto/16 :goto_2

    :catch_c
    move-exception v1

    goto/16 :goto_1
.end method

.method public constructor <init>(Lcom/burstly/jackson/type/JavaType;)V
    .locals 4
    .parameter "bt"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 32
    invoke-direct {p0}, Lcom/burstly/jackson/map/JsonDeserializer;-><init>()V

    .line 34
    iput-object p1, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_baseType:Lcom/burstly/jackson/type/JavaType;

    .line 35
    invoke-virtual {p1}, Lcom/burstly/jackson/type/JavaType;->getRawClass()Ljava/lang/Class;

    move-result-object v0

    .line 36
    .local v0, cls:Ljava/lang/Class;,"Ljava/lang/Class<*>;"
    const-class v1, Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result v1

    iput-boolean v1, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_acceptString:Z

    .line 37
    sget-object v1, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;

    if-eq v0, v1, :cond_0

    const-class v1, Ljava/lang/Boolean;

    invoke-virtual {v0, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result v1

    if-nez v1, :cond_0

    move v1, v2

    :goto_0
    iput-boolean v1, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_acceptBoolean:Z

    .line 38
    sget-object v1, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;

    if-eq v0, v1, :cond_1

    const-class v1, Ljava/lang/Integer;

    invoke-virtual {v0, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result v1

    if-nez v1, :cond_1

    move v1, v2

    :goto_1
    iput-boolean v1, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_acceptInt:Z

    .line 39
    sget-object v1, Ljava/lang/Double;->TYPE:Ljava/lang/Class;

    if-eq v0, v1, :cond_2

    const-class v1, Ljava/lang/Double;

    invoke-virtual {v0, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result v1

    if-nez v1, :cond_2

    :goto_2
    iput-boolean v2, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_acceptDouble:Z

    .line 40
    return-void

    :cond_0
    move v1, v3

    .line 37
    goto :goto_0

    :cond_1
    move v1, v3

    .line 38
    goto :goto_1

    :cond_2
    move v2, v3

    .line 39
    goto :goto_2
.end method


# virtual methods
.method protected _deserializeIfNatural(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/Object;
    .locals 2
    .parameter "jp"
    .parameter "ctxt"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/burstly/jackson/JsonProcessingException;
        }
    .end annotation

    .prologue
    .line 72
    invoke-static {}, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->$SWITCH_TABLE$com$burstly$jackson$JsonToken()[I

    move-result-object v0

    invoke-virtual {p1}, Lcom/burstly/jackson/JsonParser;->getCurrentToken()Lcom/burstly/jackson/JsonToken;

    move-result-object v1

    invoke-virtual {v1}, Lcom/burstly/jackson/JsonToken;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 100
    :cond_0
    const/4 v0, 0x0

    :goto_0
    return-object v0

    .line 74
    :pswitch_0
    iget-boolean v0, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_acceptString:Z

    if-eqz v0, :cond_0

    .line 75
    invoke-virtual {p1}, Lcom/burstly/jackson/JsonParser;->getText()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 79
    :pswitch_1
    iget-boolean v0, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_acceptInt:Z

    if-eqz v0, :cond_0

    .line 80
    invoke-virtual {p1}, Lcom/burstly/jackson/JsonParser;->getIntValue()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    goto :goto_0

    .line 85
    :pswitch_2
    iget-boolean v0, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_acceptDouble:Z

    if-eqz v0, :cond_0

    .line 86
    invoke-virtual {p1}, Lcom/burstly/jackson/JsonParser;->getDoubleValue()D

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v0

    goto :goto_0

    .line 90
    :pswitch_3
    iget-boolean v0, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_acceptBoolean:Z

    if-eqz v0, :cond_0

    .line 91
    sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    goto :goto_0

    .line 95
    :pswitch_4
    iget-boolean v0, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_acceptBoolean:Z

    if-eqz v0, :cond_0

    .line 96
    sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    goto :goto_0

    .line 72
    :pswitch_data_0
    .packed-switch 0x8
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
    .end packed-switch
.end method

.method public deserialize(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/Object;
    .locals 2
    .parameter "jp"
    .parameter "ctxt"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/burstly/jackson/JsonProcessingException;
        }
    .end annotation

    .prologue
    .line 60
    iget-object v0, p0, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_baseType:Lcom/burstly/jackson/type/JavaType;

    invoke-virtual {v0}, Lcom/burstly/jackson/type/JavaType;->getRawClass()Ljava/lang/Class;

    move-result-object v0

    const-string v1, "abstract types can only be instantiated with additional type information"

    invoke-virtual {p2, v0, v1}, Lcom/burstly/jackson/map/DeserializationContext;->instantiationException(Ljava/lang/Class;Ljava/lang/String;)Lcom/burstly/jackson/map/JsonMappingException;

    move-result-object v0

    throw v0
.end method

.method public deserializeWithType(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;Lcom/burstly/jackson/map/TypeDeserializer;)Ljava/lang/Object;
    .locals 1
    .parameter "jp"
    .parameter "ctxt"
    .parameter "typeDeserializer"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/burstly/jackson/JsonProcessingException;
        }
    .end annotation

    .prologue
    .line 48
    invoke-virtual {p0, p1, p2}, Lcom/burstly/jackson/map/deser/AbstractDeserializer;->_deserializeIfNatural(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/Object;

    move-result-object v0

    .line 49
    .local v0, result:Ljava/lang/Object;
    if-eqz v0, :cond_0

    .line 52
    .end local v0           #result:Ljava/lang/Object;
    :goto_0
    return-object v0

    .restart local v0       #result:Ljava/lang/Object;
    :cond_0
    invoke-virtual {p3, p1, p2}, Lcom/burstly/jackson/map/TypeDeserializer;->deserializeTypedFromObject(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/Object;

    move-result-object v0

    goto :goto_0
.end method
